﻿using System;
namespace WebCrawler
{
    public enum LinkTypeEnum
    {
        Page,File
    }
    public class PageOption
    {
        public string ParentTitle { get; set; }
        public string PageUrl { get; set; }
        public string PageTitle { get; set; }
        public string MatchExpression { get; set; }
        public LinkTypeEnum LinkType { get; set; } 
        public SubPageOption SubPage { get; set; }
    }

    public class SubPageOption
    {
        public string Name
        {
            get;
            set;
        }
        public LinkTypeEnum LinkType { get; set; }
        public string MatchExpression
        {
            get;
            set;
        }
        public SubPageOption SubPage
        {
            get;
            set;
        }
    }

    public class CrawlerOption
    {
        public string StartUrl
        {
            get;
            set;
        }
        public string TargetPath { get; set; }
        public string Headers
        {
            get;
            set;
        }

        public int Retries
        {
            get;
            set;
        }
        public byte[] Data
        {
            get;
            set;
        }
        public SubPageOption SubPage
        {
            get;
            set;
        }
    }
}
